class AddressItem {
  final num id;
  final bool isMain;
  final String name;
  final String address;
  final String phone;
  final int ordernumber;

  AddressItem(
      {this.name,
      this.address,
      this.phone,
      this.id,
      this.isMain,
      this.ordernumber});

  factory AddressItem.init(Map<String, dynamic> json) {
    return AddressItem(
        address: json['value'],
        phone: json['number'],
        name: json['name'],
        id: json['id'],
        isMain: json['ismain'],
        ordernumber: json['ordernumber']);
  }
}

List<AddressItem> addressListModel = [
  AddressItem.init({
    'id': 112233,
    'name': '方先生',
    'value': '江苏大学D8-313',
    'number': '1234567890',
    'ismain': true,
    'ordernumber': 0 //当前订单radio组件value值
  }),
  AddressItem.init({
    'id': 112244,
    'name': '张先生',
    'value': '江苏大学D3-113',
    'number': '0987654321',
    'ismain': false,
    'ordernumber': 1
  }),
  AddressItem.init({
    'id': 112255,
    'name': '李先生',
    'value': '江苏大学D6-103',
    'number': '8008208810',
    'ismain': false,
    'ordernumber': 2
  })
];
